home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / libraries / mathffp.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  1KB  |  59 lines

  1. #ifndef LIBRARIES_MATHFFP_H
  2. #define LIBRARIES_MATHFFP_H 1
  3. /*
  4. ** mathffp.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/01/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. /*
  17. #ifndef PI
  18. #define PI    ((float) 3.141592653589793)
  19. #endif
  20. #define TWO_PI    (((float) 2) * PI)
  21. #define PI2   (PI / ((float) 2))
  22. #define PI4   (PI / ((float) 4))
  23. #ifndef E
  24. #define E     ((float) 2.718281828459045)
  25. #endif
  26. #define LOG10     ((float) 2.302585092994046)
  27.  
  28. #define FPTEN     ((float) 10.0)
  29. #define FPONE     ((float) 1.0)
  30. #define FPHALF    ((float) 0.5)
  31. #define FPZERO    ((float) 0.0)
  32.  
  33. #define trunc(x)  ((LONGINT) (x))
  34. #define round(x)  ((LONGINT) ((x) + 0.5))
  35. #define itof(i)   ((float) (i))
  36.  
  37. #define fabs    SPAbs
  38. #define floor   SPFloor
  39. #define ceil    SPCeil
  40.  
  41. #define tan SPTan
  42. #define atan    SPAtan
  43. #define cos SPCos
  44. #define acos    SPAcos
  45. #define sin SPSin
  46. #define asin    SPAsin
  47. #define exp SPExp
  48. #define pow(a, b)    SPPow((b), (a))
  49. #define log SPLog
  50. #define log10   SPLog10
  51. #define sqrt    SPSqrt
  52.  
  53. #define sinh    SPSinh
  54. #define cosh    SPCosh
  55. #define tanh    SPTanh
  56. */
  57.  
  58. #endif  /* LIBRARIES_MATHFFP_H */
  59.